package com.xcity.pomelo.response;

import com.xcity.db.entity.Player;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class BuildSellResponse extends Response {
	// code: 200,
	// rolerGold: roler.gold,
	private long rolerGold;
	// rolerTotalGold: roler.totalGold,
	private long rolerTotalGold;
	// id: roler_build_id
	private int id;
	
	public BuildSellResponse(int serial, Player player, int buildId) {
		super(serial);
		this.rolerGold = player.getGold();
		this.rolerTotalGold = player.getFixedAssets();
		this.id = buildId;
	}

	public long getRolerGold() {
		return rolerGold;
	}

	public void setRolerGold(long rolerGold) {
		this.rolerGold = rolerGold;
	}

	public long getRolerTotalGold() {
		return rolerTotalGold;
	}

	public void setRolerTotalGold(long rolerTotalGold) {
		this.rolerTotalGold = rolerTotalGold;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

}
